#include<iostream>
#include<string>
#include<vector>
using namespace std;
enum enum_kind{
  TEACHER,
  MANAGER
};
class Student{
  string m_name;
  string m_stuid;
  char m_sex;
  string m_class;
  int m_score;
  string m_password;
public:
  void setName(string name){
    m_name=name;
  }
  //...
  string getName(){
    return m_name;
  }
  Student(){}
  Student(string fname,string fid,char fsex,string fclass,int fscore,string fpassword)
    :m_name(fname),m_stuid(fid),m_sex(fsex),m_class(fclass),m_score(fscore),m_password(fpassword){}
  bool check(){
    bool flag=true;
    if(m_name.empty()){
      cout<<"name false"<<endl;
      flag=false;
    }
    //...
    return flag;
  }
  ~Student(){}
friend class DataBase;
};
class Teacher{
  string m_name;
  string m_wordid;
  string m_department;
  enum_kind m_kind;
  string m_password;
public: 
  Teacher(string name,string id,string department,enum_kind kind,string password)
    :m_name(name),m_wordid(id),m_department(department),m_kind(kind),m_password(password){}
  Teacher(){}
  ~Teacher(){}
friend class DataBase;
  };
class DataBase{
  vector<Student> students;
  vector<Teacher> teachers;
public:
  ~DataBase(){}
  void addStudent(Student s){
    students.push_back(s);
  }
};


